package zmcc.bsp.fabric.service;

import zmcc.bsp.fabric.model.request.FabricQueryRequest;
import zmcc.bsp.fabric.model.response.FabricQueryResponse;
import zmcc.bsp.fabric.model.request.FabricRequest;
import zmcc.bsp.fabric.model.response.FabricResponse;

import java.util.List;

public interface IFabricBaseService {

	FabricResponse execute(String chaincodeId,FabricRequest request);

	public <T> FabricQueryResponse<T> query(String chaincodeId,FabricQueryRequest<T> request);

	public <T> FabricQueryResponse<List<T>> queryMany(String chaincodeId,FabricQueryRequest<T> request);

}
